GameGlobal.canvas = wx.createCanvas();
// 获取设备像素比
const windowInfo = wx.getWindowInfo ? wx.getWindowInfo() : wx.getSystemInfoSync();


// 获取设备像素比
const dpr = wx.getSystemInfoSync().pixelRatio;

// GameGlobal.dpr = windowInfo.pixelRatio;
GameGlobal.px2dpr = (n) => n * dpr


canvas.width = windowInfo.screenWidth * dpr;
canvas.height = windowInfo.screenHeight * dpr;



export const SCREEN_WIDTH = windowInfo.screenWidth * dpr;
export const SCREEN_HEIGHT = windowInfo.screenHeight * dpr;







